package com.example.mygrade.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.example.mygrade.domain.SC;
import com.example.mygrade.domain.Teacher;
import lombok.Data;

import java.io.Serializable;

@Data
public class importTeacher implements Serializable {
    /**
     * 教工号
     */
    @Excel(name = "教工号",width = 10.0)
    private String tno;
    /**
     * 教师姓名
     */
    @Excel(name = "姓名",width = 10.0)
    private String tname;

    /**
     * 教师性别
     */
    @Excel(name = "性别",width = 5.0)
    private String sex;

    /**
     * 教师年龄
     */
    @Excel(name = "年龄",width = 10.0)
    private Integer tage;

    /**
     * 密码
     */
    @Excel(name = "密码",width = 10.0)
    private String password;

    /**
     * 所教课程
     */
    @Excel(name = "课程名",width = 10.0)
    private String cname;
    /**
     * 教师职称
     */
    @Excel(name = "职称",width = 10.0)
    private String prof;

    /**
     * 教师薪水
     */
    @Excel(name = "薪水",width = 10.0)
    private Integer sala;

    /**
     * 年级号
     */
    @Excel(name = "年级号",width = 8.0)
    private Integer gradeid;
    /**
     * 院系id
     */
    @Excel(name = "院系编号",width = 5.0)
    private Integer deptid;

    /**
     * 专业id
     */
    @Excel(name = "专业编号",width = 5.0)
    private String mid;

    public importTeacher(Teacher teacher){
        this.tno = teacher.getTno();
        this.tname = teacher.getTname();
        this.tage = teacher.getTage();
        this.password = teacher.getPassword();
        this.cname = teacher.getCname();
        this.prof = teacher.getProf();
        this.sala = teacher.getSala();
        this.gradeid = teacher.getGradeid();
        this.deptid = teacher.getDeptid();
        this.mid = teacher.getMid();
    }
}
